/**
 * Created by Administrator on 2016/1/5.
 */



//加载子页面公用部分

$(function () {
//    头部
    $(".top").append(
            "<div class='top_box'>" +
            "<div class='top_box_left'>" +
            "<div class='black fw_b fs_12'>欢迎光临中国根雕行业网</div>" +
            "</div>" +
            "<div class='top_box_right'>" +
//            "<a href='javascript:void(0)' onclick='SetHome(this,window.location)' class='black fs_875 fw_b'>设为首页&nbsp;&nbsp;</a>|" +
//            "<a href='javascript:void(0)' onclick='shoucang(document.title,window.location)' class='black fs_875 fw_b'>加入收藏</a>" +
            "</div>" +
            "</div>"
    )

//    LOGO和搜索
    $(".content_top").append(
            "<div class='logo' align='center'>" +
            "<img src='../img/logo.png' alt='中国根雕行业网'>" +
            "</div>" +
            "<div class='search'>" +
            "<ul class='fs_875'>" +
            "<li class='fw_b ch'>供应信息</li>" +
            "<li class='fw_b '>企业库</li>" +
            "<li class='fw_b '>求购信息</li>" +
            "<li class='fw_b '>行业名师</li>" +
            "</ul>" +
            "<div class='box'>" +
            "<input type='text' placeholder='请输入关键字' class='fs_12' id='se'>" +
            "<input type='hidden'>" +
            "<div class='bu1 white fw_b' id='searchBu'>搜索</div>" +
            "</div>" +
            "</div>"
    )

    //            搜索
    $(".search li").click(function () {
        $(this).parent().children().removeClass("ch");
        $(this).addClass("ch");
    })


//    顶部广告
    $(".adver").append(
            "<ul>" +
            "<li>" +
            "<div><img src='../images/ggzz.gif' alt='广告'></div>" +
            "</li>" +
            "<li>" +
            "<div><img src='../images/ggzz.gif' alt='广告'></div>" +
            "</li>" +
            "<li>" +
            "<div><img src='../images/ggzz.gif' alt='广告'></div>" +
            "</li>" +
            "<li>" +
            "<div><img src='../images/ggzz.gif' alt='广告'></div>" +
            "</li>" +
            "</ul>"
    )

//    底部
    $("footer").append(
            "<hr/>" +
            "<div class='footer_box'>" +
            "<a href='#'>公司介绍</a>| <a href=''#'>联系我们</a>| <a href='#'>公司历程</a>| <a href='#'>法律申明</a><br/>" +
            "</div>" +
            "<div class='footer_box1'>" +
            "<a href='#'><img src='../images/lj.png'></a><br/>" +
            "<a href='#'>百度开放云</a>" +
            "</div>" +
            "<div class='footer_box1'>" +
            "<a href='#'><img src='../images/lj.png'></a><br/>" +
            "<a href='#'>百度开放云</a>" +
            "</div>" +
            "<div class='footer_box1'>" +
            "<a href='#'><img src='../images/lj.png'></a><br/>" +
            "<a href='#'>百度开放云</a>" +
            "</div>" +
            "<div class='footer_box1'>" +
            "<a href='#'><img src='../images/lj.png'></a><br/>" +
            "<a href='#'>百度开放云</a>" +
            "</div>" +
            "<div class='footer_box1'>" +
            "<a href='#'><img src='../images/lj.png'></a><br/>" +
            "<a href='#'>百度开放云</a>" +
            "</div>"
    )

});


